﻿@model  DataMongo.Entities.UserPortfolio

@using (Html.BeginForm("UserProfilePortfolioInfo", "Profile", FormMethod.Post, new {@class = "form-horizontal",enctype = "multipart/form-data"}))
{
    @Html.HiddenFor(x=>x.UserPortfolioId)
     <h5 style="text-align: center">
                                            Portfolio Information
                                            <span style="padding-left: 12px">
                                                <input type="submit" value="save" class="btn btn-blue btn-mini " />
                                            </span>
                                        </h5>
    <div class="control-group">
        <label for="textfield" class="control-label">Title</label>
        <div class="controls">
            @Html.TextBoxFor(x => x.Title, new {@class = "input-medium", @placeholder = "Text input"})
        </div>
    </div>
  
       <div class="control-group">
        <label for="textfield" class="control-label">Image</label>
       <div class="controls">
           @if(!string.IsNullOrEmpty(Model.ImageURl))
    {
          <img src="~/Content/UserProfile/UserPortfolio/@Model.ImageURl" width="50px"/>
     
    }
           <input type="file" name="ImageUrl"/>
          
       </div>
    </div>
     <div class="control-group">
        <label for="textfield" class="control-label">Description</label>
        <div class="controls">
            @Html.TextAreaFor(x => x.Description, new {@class = "input-medium", @placeholder = "Description"})
        </div>
    </div>
}